From: Florian Müllner Date: Tue, 1 Aug 2023 16:13:10 +0000 (+0300) Subject: popupMenu: Never add ornament padding to image items X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~337^2~1^2~76 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=8e9398be7e4fc3ad7e5dc9b8d83d56fdcc3caa35;p=gnome-shell.git popupMenu: Never add ornament padding to image items PopupImageMenuItem moves the ornament after the label, so we don't need the additional padding that accounts for visible ornaments for regular items. Spotted by Sebastian Keller. Part-of: --- diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js index 9033c9044..7b876ed24 100644 --- a/js/ui/popupMenu.js +++ b/js/ui/popupMenu.js @@ -474,6 +474,11 @@ class PopupImageMenuItem extends PopupBaseMenuItem { else this._icon.icon_name = icon; } + + _updateOrnamentStyle() { + // we move the ornament after the label, so we don't need + // additional padding regardless of ornament visibility + } }); var PopupMenuBase = class extends Signals.EventEmitter {